import request from '@/utils/request'

// 查询注册验证码列表
export function listChatRegisterCode(query) {
  return request({
    url: '/business/chatRegisterCode/list',
    method: 'get',
    params: query
  })
}

// 查询注册验证码详细
export function getChatRegisterCode(id) {
  return request({
    url: '/business/chatRegisterCode/' + id,
    method: 'get'
  })
}

// 新增注册验证码
export function addChatRegisterCode(data) {
  return request({
    url: '/business/chatRegisterCode',
    method: 'post',
    data: data
  })
}

// 修改注册验证码
export function updateChatRegisterCode(data) {
  return request({
    url: '/business/chatRegisterCode',
    method: 'put',
    data: data
  })
}

// 删除注册验证码
export function delChatRegisterCode(id) {
  return request({
    url: '/business/chatRegisterCode/' + id,
    method: 'delete'
  })
}
